﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Xml;
namespace BanHangCshap
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            //DevExpress.Skins.SkinManager.EnableFormSkins();
            string skinname = "Xmas 2008 Blue";
            if (System.IO.File.Exists(Application.StartupPath + "\\skin.xml"))
            {
                XmlTextReader myXML = new XmlTextReader(Application.StartupPath + "\\skin.xml");

                while (myXML.Read())
                {
                    if (myXML.LocalName == "Skin")
                    {
                        skinname = myXML.ReadString().Trim();

                    }


                }
                myXML.Close();
            }
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = skinname;
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Xmas 2008 Blue");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MAIN());
        }
    }
}
